//import config from "@/config"
import http from "@/utils/request"

export default {
	token: {
//		url: `${config.API_URL}/token`,  //TODO ftquan
		url: `http://127.0.0.1:8000/oauth/token`,  //TODO ftquan
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	userinfo: {
		url: `http://127.0.0.1:8000/oauth/userinfo`,  //TODO ftquan
		name: "获取当前登录用户信息",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
}
